package com.zhuoyue.common.core.domain;

import java.io.Serializable;

/**
 * ClassName: BaseResultDTO <br/>
 * Description: <br/>
 * date: 2019/2/13 16:48<br/>
 *
 * @author wjming<br />
 * @version 1.0
 */
public class BaseResultDTO implements Serializable {

    private static final long serialVersionUID = 6674115333952533203L;

    protected boolean success = false;

    protected String resultCode;
    protected String errorDetail;
    protected String needResult;

    public String getErrorDetail() {
        return errorDetail;
    }

    public void setErrorDetail(String errorDetail) {
        this.errorDetail = errorDetail;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isFailed() {
        return !success;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getNeedResult() {
        return needResult;
    }

    public void setNeedResult(String needResult) {
        this.needResult = needResult;
    }

}
